package org.ekstrabilet.stadium.beans;

/**
 * 
 * @author Maciej Koch
 *
 */
public class PhysicalObject {
	
	
	public float x;
	public float y;
	public float width;
	public float height;
	
	public void set(float x, float y, float width, float height) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
	}

	public boolean isOn(float mx, float my) {
		if(mx >= x && mx <= x + width && my >= y && my <= y + height)
			return true;
		return false;
	}
}
